-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Separate non-scalar tests from test_timestamps #19385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks fine. I would like to generally create sub modules rather than move things inside a single file.
ser[0] = pd.Timestamp('nat') | ||
ser[3] = pd.Timestamp('nat') | ||
|
||
ops = {'lt': 'gt', 'le': 'ge', 'eq': 'eq', 'ne': 'ne'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note to parametrize
check(ts.week, 1) | ||
check(ts.daysinmonth, 31) | ||
|
||
ts = Timestamp('2014-01-01 00:00:00+01:00') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note to separate & parametrize (the is_* ones)
# GH 17354 | ||
assert data.weekday_name == expected | ||
|
||
@pytest.mark.parametrize('tz', [None, 'UTC', 'US/Eastern', 'Asia/Tokyo']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note to use the tz fixture
Noted. |
Codecov Report
@@ Coverage Diff @@
## master #19385 +/- ##
==========================================
+ Coverage 91.57% 91.64% +0.06%
==========================================
Files 150 150
Lines 48684 48699 +15
==========================================
+ Hits 44583 44630 +47
+ Misses 4101 4069 -32
Continue to review full report at Codecov.
|
thanks. a PR to separate into submodules (comparisons, arithmetic, and ops) would be very helpful (hint to do next). |
Getting DataFrame, Series, Index tests out of tests.scalars and organizing them better, should make it easier to go and parametrize some older tests, in particular arithmetic and comparisons.